<?php
session_start();
require_once ("model/m_new.php");
$news = new M_new();

 if (!isset($_SESSION['userid'])){
     $id = session_id();
     $_SESSION['sess_id'] = $id;
     
 }

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>COPY-HIDEF</title>


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="js/jquery-ui-1.8.22.custom.min.js" type="text/javascript" ></script>
<script src="js/js_tool_ui.js" type="text/javascript" ></script>
<script src="js/slides.min.jquery.js"></script>
<script src="js/jquery.blockUI.js"></script>
<script src="js/jquery.ui.all.js"></script>
<script src="js/jquery.jgrowl.js"></script> 

<script src="js/ui/jquery.ui.core.js"></script>
<script src="js/ui/jquery.ui.widget.js"></script>
<script src="js/ui/jquery.ui.mouse.js"></script>
<script src="js/ui/jquery.ui.button.js"></script>
<script src="js/ui/jquery.ui.position.js"></script>
<script src="js/ui/jquery.ui.dialog.js"></script>

<link rel="stylesheet" type="text/css" href="css/jquery-ui-1.8.22.custom.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/myStyle.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.jgrowl.css" />

 
<script src='js/jquery.mousewheel.min.js'></script>     

<script src='js/jScrollPane.js'></script>
<link rel='stylesheet' type='text/css' media='all' href='css/jScrollPane.css' />   
<script src="js/js_query.js"></script>

 
</head>

<body>

   <!-- Begin Wrapper -->
   <div id="wrapper">
   		
         <!-- Begin Navigation -->
         <div id="navigation">
         	<span class="logo"><img src="images/logo.jpg" alt="" width="360" height="100" /></span>	 
			<span class="menu">
            <ul>
                <li><a href="index.php">หน้าหลัก</a></li>
                <li ><a href="payment.php">วิธีการชำระเงิน  </a></li>
                    <?php
                        if (isset($_SESSION['userid'])){
                            $logoutStyle="";
                            $loginStyle="display:none;";
                        }else{
                            $logoutStyle="display:none;";
                            $loginStyle="";
                        }
                    ?> 
                <li  style="<?php echo $loginStyle;?>"><a href="#" class="btnLogin">เข้าสู่ระบบ </a></li>
                <li style="<?php echo $logoutStyle;?>"><a href="#" class="btnLogout">ออกจากระบบ </a></li>
            </ul>

            
            </span>   
		 </div>
<!-- End Navigation -->
   
         <!-- Begin Header -->
         <div id="header">
           <div id="slides">
                <div class="slides_container">
                    <a href="#" class="slide"><img src="images/banner1.jpg" alt="1" width="624" height="292" /></a>
                    <a href="#" class="slide"><img src="images/banner2.jpg" alt="1" width="624" height="292" /></a>
                    <a href="#" class="slide"><img src="images/banner3.jpg" alt="1" width="624" height="292" /></a>
                    <a href="#" class="slide"><img src="images/banner4.jpg" alt="1" width="624" height="292" /></a>
                    <a href="#" class="slide"><img src="images/banner5.jpg" alt="1" width="624" height="292" /></a>
         	  </div> 
           </div> 
            <span class="news">
            	<span><img src="images/news_head.png" alt="" width="275" height="59" /></span>
                <ul>
                <?php
                    $result=$news->getNew();
                    while($row = $result->FetchRow()){
                ?>
                     <li><a href="news.php?id=<?php echo $row['id'];?>"  rel="#overlay"><?php echo $row['title'];?></a></li>
                <?php
                    }
                ?>
               
                </ul>
                
            </span>	 
			   
</div>
		 <!-- End Header -->
		 
<!-- Begin Faux Columns -->
		 <div id="faux">
		 
		       <!-- Begin Right Column -->
		       <div id="column">
		             <a name="top_section"></a>
	                 <div class="topbar">
               	      <span class="search">
                     	<input name="txtSearch" type="text" id="txtSearch" class="bar" value="" />
                        <img src="images/bnt-search.jpg" alt="" width="82" height="26" border="0" id="btnSearch" style="cursor:pointer" />
                   	  </span>
                        <span class="order">รวมขนาดไฟล์ : <span class="totalGB">0</span>GB
                           <?php if (isset($_SESSION['userid'])){?> 
                                <a href="order.php"><img src="images/bnt-order.jpg" alt="" class="btnOrder" width="82" height="26" border="0"  style="cursor:pointer" /></a>
                           <?php }else{?>
                                <img src="images/bnt-order.jpg" alt="" class="btnLogin" width="82" height="26" border="0"  style="cursor:pointer" />
                           <?php } ?>
                        </span>
                        <span class="list">
                        <a href="#top_section" class='chr' id='All' >ALL</a> 
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='A'>A</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='B'>B</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='C'>C</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='D'>D</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='E'>E</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='F'>F</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='G'>G</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='H'>H</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='I'>I</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='J'>J</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='K'>K</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='L'>L</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='M'>M</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='N'>N</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#top_section" class='chr' id='O'>O</a>
                        &nbsp;|&nbsp;<a href="#top_section" class='chr' id='P'>P</a>
                        &nbsp;|&nbsp;<a href="#top_section" class='chr' id='Q'>Q</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='R'>R</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='S'>S</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='T'>T</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='U'>U</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='V'>V</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='W'>W</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='X'>X</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='Y'>Y</a>
                        &nbsp;|&nbsp; <a href="#top_section" class='chr' id='Z'>Z</a>
                        <br />
                        <a href="#top_section" class="cat" id="MKV">MKV</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id="Bluray">Bluray</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id="USA">USA Series</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id="Korea">Korea Series</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id="Concert">Concert</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id="3D">3D</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id="Documentary">Documentary</a>
                        &nbsp;|&nbsp;
                        <a href="#top_section"  class="cat" id"ETC">ETC</a>                  
                        &nbsp;|&nbsp;
                          <div class="listpage" style="float:right;">
                             <span style="float:left">
                                 <img src="images/bnt01.jpg" alt="" width="18" height="18" border="0" class="first" style="cursor:pointer;"/>
                                 <img src="images/bnt02.jpg" alt="" width="18" height="18" border="0" class="prev" style="cursor:pointer;"/>
                              </span>
                             <span><input name="txtPage3" type="text" class="bar2" readonly="true" id="txtPage3" value="" />
                                 <input type="hidden" id="txtCurrentPage" value="1"/>
                                 <input type="hidden" id="txtTotalPage" value=""/>
                             </span>
                             <span style="float:left; margin-right:10px;">
                                 <img src="images/bnt03.jpg" alt="" width="18" height="18" border="0" class="next" style="cursor:pointer;"/>
                                 <img src="images/bnt04.jpg" alt="" width="18" height="18" border="0" class="last" style="cursor:pointer;"/>
                             </span>
                                 <select name="cboPageList" id="cboPageList">
                                     <option value="10">10</option>
                                     <option value="20">20</option>
                                     <option value="30">30</option>
                                     <option value="50">50</option>
                                     <option value="100">100</option>
                                 </select>
                           </div>
                        </span>
                     </div>
      
		          <div class="clear">&nbsp;</div>
			   
			   
			 
			     <!--div id="panel1" class="scroll-pane" -->
                    <div id="content">
                     
                    </div>
			      <!--/div-->
			      
			  
		       </div>
		       <!-- End Right Column -->
			   
			   <div class="clear"></div>
			   
         </div>	   
         <!-- End Faux Columns --> 

         <!-- Begin Footer -->
         <!--div id="footer">
              <strong><a href="#top_section">TOP</a></strong>
        </div-->
         <span class="footermenu">
         <a href="index.php">หน้าหลัก</a> I <a href="payment.php">วิธีการชำระเงิน</a> I 
         <?php
                        if (isset($_SESSION['userid'])){
                            $logoutStyle="";
                            $loginStyle="display:none;";
                        }else{
                            $logoutStyle="display:none;";
                            $loginStyle="";
                        }
                    ?> 
                <a href="javascript:void(0);" class="btnLogin" style="<?php echo $loginStyle;?>">เข้าสู่ระบบ </a>
                <a href="javascript:void(0);" class="btnLogout" style="<?php echo $logoutStyle;?>">ออกจากระบบ </a>   
               <br />
www.copyhidef.com
         </span>
		 <!-- End Footer -->
		 
   </div>
   <!-- End Wrapper -->
   
   <!-- Login -->
<div id="dialog-form" title="Login">
    <p class="validateTips">*All form fields are required.</p>
    <br/>
        <table width="100%" cellspacing="5">
            <tr>
                <td style="height:30px;">Username</td>
                <td>:&nbsp;<input type="text" name="txtUsername" id="txtUsername" style="padding:2px;"  /></td>
            </tr>
            <tr>
               <td>Password</td>
                <td>:&nbsp;<input type="password" name="txtPassword" id="txtPassword" style="padding:2px;" /></td>
                
            </tr>
            
        </table>

</div>   

<!-- overlayed element -->
<div class="apple_overlay" id="overlay">
  <!-- the external content is loaded inside this tag -->
  <div class="contentWrap"></div>
</div>
</body>
</html>
